DESCRiPTiON
Official Website: hxxp://www.PeerGoal.com
Downloaded from http://scripter.biz/
What Is It
Easy File share is a very Powerful and Easy to use script. 
Easy File Share is the easiest and a great way to share your
files with others. Easy File Share lets all users upload there
files and share them emedietly with others. You are able to control 
all the files that are uploaded, and able to contact each uploader 
via email. You can also change the way the site looks, and feels. 
There are a some cool options in the control panel. Example: you 
can set a count down for each download to begin, and you can even 
set how long before the file expires due to no downloads. There is 
many good features in File Share, It is a great way to start a 
community of file sharing!




<?PHP
// ################################################################
// #
// #	File Share 1.0
// #
// #
// #	This script is licensed to a single domain only. You must
// #	purchase additional license keys for additional domains.
// #
// #
// #	PeerGoal.com
// #	http://wwww.PeerGoal.com
// #	Scripts@akws.ca
// #
// #	Created 	10/06/2005
// #	Modified 	10/26/2005
// #
// #
// #	Copyright 2003-2005 AK Web Solutions
// #	All Rights Reserved
// #
// #	Selling of this code in part or in whole without
// #	prior written consent is expressly forbidden!
// #
// #	Obtain written permission before redistributing this
// #	software over the Internet or in any other medium.
// #
// #	In all cases this full header must remain intact!
// #
// #
// ################################################################



***********
  INSTALL 
***********
1) Upload all files to your server
2) Setup the database with the "SQL STRUCTURE" below (OR upload sqlfile.sql thanks to flamezboy)
3) Set the folder "files" to 777
4) Password protect the /admin folder from your control panel
5) From within your control add a cron job for cron.php
   Make sure the cron.php is not in your public folder
6) Edit Config.php to add your sql details
7) Access http://YourDomain.com/admin/


*****************
  SQL STRUCTURE 
*****************


CREATE TABLE `config` (
  `name` varchar(255) NOT NULL default '',
  `value` varchar(255) NOT NULL default ''
) TYPE=MyISAM;

INSERT INTO `config` (`name`, `value`) VALUES ('site_title', 'SCRIPTER.BIZ - PHP SCRIPTS');
INSERT INTO `config` (`name`, `value`) VALUES ('require_file_activation', 'true');
INSERT INTO `config` (`name`, `value`) VALUES ('site_url', 'http://www.Domain.com');
INSERT INTO `config` (`name`, `value`) VALUES ('automsg_email', 'donotreply@Domain.com');
INSERT INTO `config` (`name`, `value`) VALUES ('site_domain', 'Domain.com');
INSERT INTO `config` (`name`, `value`) VALUES ('filtered_file_extensions', 'php torrent');
INSERT INTO `config` (`name`, `value`) VALUES ('storage_path', 'files/');
INSERT INTO `config` (`name`, `value`) VALUES ('file_expiration', '30');
INSERT INTO `config` (`name`, `value`) VALUES ('download_delay', '10');
INSERT INTO `config` (`name`, `value`) VALUES ('max_filesize', '1');
INSERT INTO `config` (`name`, `value`) VALUES ('version', '1.0');

CREATE TABLE `files` (
  `id` int(11) NOT NULL auto_increment,
  `hash` varchar(255) NOT NULL default '',
  `filename` varchar(255) NOT NULL default '',
  `filesize` int(11) NOT NULL default '0',
  `filetype` varchar(255) NOT NULL default '',
  `email` varchar(255) NOT NULL default '',
  `ip` varchar(15) NOT NULL default '',
  `enabled` int(1) NOT NULL default '0',
  `mktime` int(11) default NULL,
  `times_downloaded` int(11) NOT NULL default '0',
  `last_downloaded_mktime` int(11) default NULL,
  `friends` varchar(255) NOT NULL default '',
  KEY `id` (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;

CREATE TABLE `log` (
  `id` int(11) NOT NULL auto_increment,
  `ip` varchar(15) NOT NULL default '',
  `hash` varchar(255) NOT NULL default '',
  `mktime` int(11) default NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
